-- GENERATED SPELL FOR [Iceshatter] --


function spell0_27007(pUnit, Event) --@Magnataur Charge,n/a--
pUnit:FullCastSpellOnTarget(52088,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27007', 550, 1)
end

function spell1_27007(pUnit, Event) --@Pulsing Shards,Self--
pUnit:FullCastSpellOnTarget(52118,pUnit)
pUnit:RegisterEvent('Sorts_27007', 7500, 1)
end

function Sorts_27007(pUnit, Event)
local choix_sorts_27007 = math.random(0, 1)
if choix_sorts_27007 == 0 then
pUnit:RegisterEvent('spell0_27007', 1, 1)
end
if choix_sorts_27007 == 1 then
pUnit:RegisterEvent('spell1_27007', 1, 1)
end
end

function mob27007_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27007', math.random(1500, 3000), 1)
end

function mob27007_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27007_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27007_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27007, 1, 'mob27007_Action')
RegisterUnitEvent(27007, 2, 'mob27007_Leave')
RegisterUnitEvent(27007, 3, 'mob27007_Kill')
RegisterUnitEvent(27007, 4, 'mob27007_Die')
